#include "MainWidget.h"
#include "App.h"

#include <QStyleFactory>
#include <WidgetHandler.h>
#include <SystemSettingUi.h>
int main(int argc, char *argv[]) {
    QApplication::setStyle(QStyleFactory::create("Fusion"));
    App a(argc, argv);
    MainWidget w;
    w.show();
    auto widget = WidgetHandler::getInstance()->getWidget(SystemSettingUi_Id);
    SystemSettingUi *swidget = dynamic_cast<SystemSettingUi*>(widget);
    if(swidget) {
        qDebug()<<"find SystemSettingUi";
        swidget->modifyLanByfile();
    }

    return a.exec();
}
